* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

header {
    text-align: center;
    padding: 40px 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 10px;
    margin-bottom: 30px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    font-weight: 700;
}

header p {
    font-size: 1.1rem;
    opacity: 0.9;
}

.search-box {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
}

.search-box input {
    width: 60%;
    max-width: 500px;
    padding: 12px 20px;
    font-size: 16px;
    border: none;
    border-radius: 25px 0 0 25px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    outline: none;
}

.search-box button {
    padding: 12px 24px;
    background-color: #667eea;
    color: white;
    border: none;
    border-radius: 0 25px 25px 0;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.search-box button:hover {
    background-color: #5a67d8;
}

.category-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.category {
    background-color: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s, box-shadow 0.3s;
}

.category:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.category h2 {
    color: #667eea;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f0f0;
    font-size: 1.3rem;
}

.links {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 15px;
}

.links a {
    display: block;
    padding: 12px 15px;
    background-color: #f8f9fa;
    color: #495057;
    text-decoration: none;
    text-align: center;
    border-radius: 8px;
    transition: all 0.3s;
    font-weight: 500;
}

.links a:hover {
    background-color: #667eea;
    color: white;
    transform: translateY(-2px);
}

footer {
    text-align: center;
    padding: 20px;
    color: #666;
    font-size: 0.9rem;
    border-top: 1px solid #eaeaea;
}

footer a {
    color: #667eea;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

/* 响应式设计 */
@media (max-width: 768px) {
    header h1 {
        font-size: 2rem;
    }
    
    .search-box input {
        width: 80%;
    }
    
    .category-container {
        grid-template-columns: 1fr;
    }
    
    .links {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .container {
        padding: 15px;
    }
    
    header {
        padding: 30px 0;
    }
    
    header h1 {
        font-size: 1.8rem;
    }
    
    .search-box {
        flex-direction: column;
        align-items: center;
    }
    
    .search-box input,
    .search-box button {
        width: 100%;
        max-width: 400px;
        border-radius: 25px;
        margin-bottom: 10px;
    }
    
    .search-box button {
        margin-bottom: 0;
    }
}